<new topic>
AttriBat

Files & Folders Attributes Batch maker

Features:

If you  restore a backup from MS-DOS, then files that

have the Read-Only, Hidden and System attributes will

not be restored from backup unless you set their attributes

to Normal.

That is also true if you use a DOS unzipping software, they have switches

to restore Hidden, Read Only and System but will not overwrite a

Read-Only file or folder.

AttriBat.exe will search the hard drive for files and folders that have

Read-Only, Hidden and System attributes and make 2 batch files

AtNorm.bat and AtRest.bat (name optional) :

1) Run AtNorm.bat will set all Read Only, Hidden and

System attributes to Normal.

Then restore from backup or manipulate files and folders in MS-DOS.

AttriBat will also make restore batch files to restore using Pkunzip.exe.

2) When done, run AtRest.bat it will restore all files and folders attributes

to their original attributes.

These batch files has to be made in Windows and should be stored in the

root directory C. Or store them in the backup drive.

TIP Have AttriBat make  AtNorm.bat and AtRest.bat in the root directory

C all the time, a day will come that you might need them.

AttriBat method is much more reliable and faster than using the command:

Attrib C:\*.* -s -h -r /s

Also it restores attributes.

Instructions:

There is three buttons to choose from

#1) Make Pkunzip DOS Restore Batch File only.

This will make a DOS Pkunzip restore batch file.

Batch file name will be Restore.bat(name optional),

Pkunzip.exe is copied to the location where the batch

files are copied.

Note: AttriBat is part of MinuteMan Data Backup which has Pkunzip.exe

included. AttrIbat distributed alone doesn't have Pkunzip.exe included.

Copy Pkunzip.exe to the Attribat directory, download or buy MinuteMan

to get Pkunzip.exe.

Example:

Pkunzip -Jhsr C:\Windows.ZIP C:\Windows -do

It will extract Windows.zip to the Windows directory,

-Jhsr (J is upper case) stands for, extract all files with

Hidden, Read-Only and System files.

-do The d stands for restore/create Directory structure stored in .ZIP file,

and the o stands to overwrite without prompting.

#2) Make Attribute Batch Files only

This will make two batch files, AtNorm.bat and AtRest.bat

(names optional) only.

Run AtNorm.bat to set all files and folders to normal attributes,

type atnorm at the Command Prompt Only to run AtNorm.bat.

Then restore from backup or manipulate files and folders in MS-DOS.

Run AtRest.bat, it will restore all files and folders to their original

attributes, type atrest at the Command Prompt Only to run AtRest.bat.

#3) Make Both

This will make three batch files, AtNorm.bat, AtRest.bat and

Restore.bat(names are optional).

Run Restore.bat, it will call AtNorm.bat and run it, then runs the

Pkunzip command line then calls AtRest.bat and runs it.

Restore.bat will run all three batch files, all you have to do is type

Restore where it is located.

When you run Make Both then Pkunzip.exe is copied to the location

of the batch files if one doesn't already exist.

Also Attrib.exe is copied from Windows\Command to  the location

where the batch files are store, if one doesn't already exist.

Note:

A DOS window will open after running either button #2 or #3, wait

few seconds then close it when finished.

Text Boxes:

There are three text boxes that have to be filled and three optional.

The three boxes has to be filled if you select button 1 or 3.

If you select button 2 then only the "Backed up directory" text box

and the "Store batch files at" has to be filled.

After selecting path, double click text box to transfer path.

Note:

All paths in text boxes has to be in DOS short file name, once you

double click the text box to transfer path, it automatically converts

long file names to short file names.

Install:

AttriBat is already included with MinuteMan Data Backup

and a part of MinuteMan data backup.

AttriBat needs the VB5run to be installed, if you don't have

the VB5run then download the VB5run2 at

http://www.mslm.com/free.htm

To install AttriBat, double click Setup.exe and select a path

for it to be installed in.

Pkunzip.exe has to be in the same directory as AttriBat.

Uninstall:

Delete the directory AttriBat and delete the shortcut in the StartMenu.

================

AttriBat

1998 Copyright. All rights Reserved

Theodore Fattaleh

Author, Programmer, Publisher.

http://www.mslm.com

twf@flash.net

2000@msn.com

2000ted@compuserve.com